package com.cmf.myproject.service.system.resource.dto;

import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import com.cmf.myproject.dal.mybatis.enums.SysResourceTypeEnum;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class SysResourceAddItemReqDto {
	/**
	 * (sys_resource)
	 */
	@ApiModelProperty(value = "")
	private Long id;
	/**
	 * 父资源ID(sys_resource)
	 */
	@ApiModelProperty(value = "父资源ID")
	private Long parentResourceId;
	/**
	 * 资源名称(sys_resource)
	 */
	@ApiModelProperty(value = "资源名称")
	@Size(min = 0,max = 20,message ="name字段超过限长（20）")
	@NotBlank(message = "资源名称不能为空(name)")
	private String name;
	/**
	 * 资源类型(sys_resource)
	 */
	@ApiModelProperty(value = "资源类型")
	private SysResourceTypeEnum type;
	/**
	 * 资源代码(sys_resource)
	 */
	@ApiModelProperty(value = "资源代码")
	@Size(min = 0,max = 20,message ="permission字段超过限长（20）")
	private String permission;
	/**
	 * 链接(sys_resource)
	 */
	@ApiModelProperty(value = "链接")
	@Size(min = 0,max = 255,message ="url字段超过限长（255）")
	private String url;
	/**
	 * (sys_resource)
	 */
	@ApiModelProperty(value = "")
	private Date createTime;
	/**
	 * (sys_resource)
	 */
	@ApiModelProperty(value = "")
	private Date updateTime;
}